home *** CD-ROM | disk | FTP | other *** search
/ ftp.funduc.com / 2014.08.ftp.funduc.com.tar / ftp.funduc.com / setuprt.exe / {app} / ScriptSyntax.txt < prev   
Text File  |  2009-02-01  |  9KB  |  282 lines

  1. #               Registry Toolkit Script File Sample
  2. #                      Funduc Software, Inc.
  3. #                       Copyright 1998-2009
  4. #      http://www.funduc.com  http://www.searchandreplace.com
  5.  
  6. # This file describes the script syntax for Registry Toolkit v 3.6+
  7.  
  8. # General Comments
  9. # ======================================================
  10. # The # character in column 1 is the comment character. 
  11. # These MUST go in column 1. 
  12.  
  13. # All switches must start in column 1.
  14.  
  15. # Scripts are divided into [Action ] sections that are 
  16. # numbered sequentially, e.g, [Action01], [Action02], 
  17. # [Action03], ....  They can be in any order in the 
  18. # script but are processed sequentially by number.
  19.  
  20. # Scripts can also have an optional [Default] section.  
  21. # [Default] can be used to specify switches that are to 
  22. # be used in all [Action ] that do not have that same switch 
  23. # specified.  A switch specified in an [Action ] always 
  24. # overrides the counterpart (if any) from [Default].
  25.  
  26. # All scripts MUST have at least one [Action ] section.  
  27. # For a single action script, DO NOT USE a [Default]
  28. # section.  Use [Action1] instead. 
  29.  
  30. # If your script has multiple actions and if you are 
  31. # using output file(s), use a different Output/Undo File= 
  32. # specification for each [Action ].  File writes to the 
  33. # output file are 'overwrite', not 'append'.
  34.  
  35. # See [Action3] below for an example of how to specify 
  36. # multiple s/r's within a single [Action ].
  37.  
  38. # See F1 hlp for information on performing Exports via 
  39. # a script.
  40.  
  41. [Default]
  42.  
  43. # Use this optional section to specify any switches to be
  44. # applied to all [Action ]'s.  We suggest new users 
  45. # omit [Default] entirely and specify all switches within 
  46. # each [Action ].  You can streamline later if you want by 
  47. # making a [Default]. 
  48.  
  49. [Action1]
  50. # *** HIVE/HEY TO SEARCH ***
  51. # Specify a top level key name to begin the operation from.
  52. # Wild card characters * and ? can be used.  It is not necessary
  53. # to enable Regular Expression mode.  The program will 
  54. # automatically detect and use wild cards.  See last Action below
  55. # for example.
  56. # If you need to reference a remote registry, use UNC style 
  57. # naming, e.g., Key=\\MainSrv1\HKEY_CURRENT_USER
  58. # See F1 hlp for more info on Remote Registry.
  59. Key=HKEY_CURRENT_USER\Software
  60.  
  61. # *** SEARCH AND REPLCE STRINGS ***
  62. # It is OK to leave Replace String= blank when conducting 
  63. # search-only operations.  Results of the search will be 
  64. # written to the undo file.
  65. # If you wish to use the undo file to preview the effects 
  66. # of a replacement, enter a string in Replace String= and 
  67. # specify Replace=0 (see below).
  68. Search String=Funduc
  69. Replace String=
  70.  
  71. # *** CASE SENSITIVE OPERATION ***
  72. # 0 = Case Insensitive search
  73. # 1 = Case Sensitive search
  74. # If not specified, Default = 0
  75. Case Sensitive=0
  76.  
  77. # *** WHOLE WORD OPERATION ***
  78. # 0 = Whole Word matching for the search string off
  79. # 1 = Whole Word matching search string on
  80. # If not specified, Default = 0
  81. Whole Word=0
  82.  
  83. # *** REGULAR EXPRESSION OPERATION ***
  84. # See Registry Operations - Regular Expressions for more info.
  85. # 0 = Regular Expression mode off
  86. # 1 = Regular Expression mode on
  87. # If not specified, Default = 0
  88. Regular Expression=0
  89.  
  90. # *** OPERATIONS ON VALUES ***
  91. # 0 = Do not search (or replace) in registry values
  92. # 1 = Search (or replace) in registry values
  93. # If not specified, Default = 0
  94. Values=1
  95.  
  96. # *** OPERATIONS ON KEYS ***
  97. # 0 = Do not search (or replace) registry keys
  98. # 1 = Search (or replace) registry keys
  99. # If not specified, Default = 0
  100. Keys=1
  101.  
  102. # *** OPERATIONS ON DATA ***
  103. # 0 = Do not search (or replace) data values
  104. # 1 = Search (or replace) data values
  105. # If not specified, Default = 0
  106. Data=1
  107.  
  108. # *** OPERATIONS ON STRING DATA ***
  109. # 0 = Do not search (or replace) REG_SZ data types
  110. # 1 = Search (or replace) REG_SZ data types
  111. # If not specified, Default = 0
  112. String=1
  113.  
  114. # *** OPERATIONS ON EXPANDED STRING DATA ***
  115. # 0 = Do not search (or replace) REG_EXPAND_SZ data types
  116. # 1 = Search (or replace) REG_EXPAND_SZ data types
  117. # If not specified, Default = 0
  118. Expanded String=0
  119.  
  120. # *** OPERATIONS ON MUTLI LINE STRING DATA ***
  121. # 0 = Do not search (or replace) REG_MULTI_SZ data types
  122. # 1 = Search (or replace) REG_MULTI_SZ data types
  123. # If not specified, Default = 0
  124. Multi String=0
  125.  
  126. # *** OPERATIONS ON DWORD DATA ***
  127. # 0 = Do not search (or replace) REG_DWORD data types
  128. # 1 = Search (or replace) REG_DWORD data types
  129. # If not specified, Default = 0
  130. DWORD=0
  131.  
  132. # *** OPERATIONS BINARY DATA ***
  133. # 0 = Do not search REG_BINARY data types 
  134. # 1 = Search REG_BINARY data types
  135. # If not specified, Default = 0
  136. Binary=0
  137.  
  138. # *** PROCESS SUBKEYS OR NOT ***
  139. # By default the program will recurse all subkeys.  To 
  140. # process values/data only in the immediate key specified 
  141. # in the Key= switch above, use the Process Subkeys=0 
  142. # switch.  Also see comments below about the use of 
  143. # wild cards in the Key= specification.  You should 
  144. # specify Process Subkeys=0 if you are using a wildcard 
  145. # in Key= and want to confine the search to the exact key
  146. # structure specified.
  147. # 0 = Do not process subkeys
  148. # 1 = Process Subkeys
  149. Process Subkeys=1
  150.  
  151. # *** OUTPUT/UNDO FILE SPECIFICATION ***
  152. # You should use this switch to specify an output file for  
  153. # the script.  It can be omitted but we do not recommend doing
  154. # so.  You can - and probably should, specify a different 
  155. # output/undo file for each [ActionX] section in a multi-step 
  156. # script.  The Output/Undo File is NOT an append mode write.  
  157. # If you don't specify a unique name for each step, results 
  158. # will be overwritten each time. 
  159. # A machine environment variable can be used in the path string. 
  160. # Use the syntax %%ENVVAR=variable name %%. (case insensitive)
  161. # NUL (case insensitive) can be used for the file name to disable
  162. # the dump for an action.
  163. Output/Undo File=D:\Scripts\RTOutput1.txt
  164.  
  165. # *** REPLACEMENT PROMPTING ***
  166. # Note: When confirm is on, you may chose to skip all further 
  167. # confirmations in the confirmation dialog after the first prompt 
  168. # is offered. 
  169. # 0 = No initial replacement confirmation
  170. # 1 = Confirm replacement prompt supplied for first replacement
  171. # If not specified, Default = 0
  172. Prompts=1
  173.  
  174. # *** PERMIT REPLACEMENTS? ***
  175. # Use this when you have a Replace String specified but just want 
  176. # to preview the results of your replace.  The preview will be 
  177. # listed in the Output/Undo File.
  178. # 0 = No replace
  179. # 1 = Perform a replace
  180. # If not specified, Default = 0
  181. Replace=0
  182.  
  183. # *** DISPLAY PROGRESS METER ***
  184. # 0 = Standard progress meter
  185. # 1 = No progress meter is displayed
  186. # If not specified, Default = 0
  187. No Progress=0
  188.  
  189. # *** WRITE REPLACEMENT STRING TO VALUE DATA ***
  190. # To write the replace string where a value is found 
  191. # by the search string instead of changing the value 
  192. # itself, specify the data type with this switch. 
  193. # In most cases you will not use any setting for this
  194. # switch so leave it turned off or omit entirely.
  195. # 1 = REG_SZ
  196. # 2 = REG_EXPAND_SZ
  197. # 3 = REG_BINARY
  198. # 4 = REG_DWORD
  199. # 4 = REG_DWORD_LITTLE_ENDIAN
  200. # 5 = REG_DWORD_BIG_ENDIAN
  201. # 6 = REG_LINK
  202. # 7 = REG_MULTI_SZ
  203. # If not specified, Default=0.
  204. Set Value Data=0
  205.  
  206.  
  207. [Action2]
  208. Key=HKEY_CURRENT_USER\Software2
  209. Search String=Test
  210. Replace String=Testing
  211. Replace=1
  212. Case Sensitive=1
  213. Whole Word=1
  214. Regular Expression=0
  215. Values=1
  216. Keys=0
  217. Data=0
  218. String=1
  219. Expanded String=0
  220. Multi String=0
  221. Binary=0
  222. Output/Undo File=D:\Scripts\RTOutput2.txt
  223. Prompts=0
  224.  
  225. # Note: The below Action does a multiple s/r on 
  226. # HKEY_CURRENT_USER\Software\Test.  You must use the 
  227. # numbering as modeled below.  The first Search String= and 
  228. # Replace String= specs have no number.  The second (and 
  229. # above) begin with the number 2.  Note that an environment 
  230. # var is specified in the output file path.
  231.  
  232. [Action3]
  233. Key=HKEY_CURRENT_USER\Software\Test
  234. Search String=FindMe
  235. Replace String=Replace with this
  236. Search String2=Another string to find
  237. Replace String2=Replace with this too
  238. Search String3=Locate this
  239. Replace String3=And replace with this
  240. Replace=1
  241. Case Sensitive=1
  242. Whole Word=0
  243. Regular Expression=0
  244. Values=1
  245. Keys=0
  246. Data=0
  247. String=1
  248. Expanded String=0
  249. Multi String=0
  250. Binary=0
  251. Output/Undo File=D:\Scripts\%%envvar=COMPUTERNAME%%\RTOutput3.txt
  252. Prompts=0
  253.  
  254. # The below Action uses a wild card in the key spec. 
  255. # The program will search all the 'S- ' keys under HKEY_USERS 
  256. # Note that Regular Expression=0 is OK.  It is not necessary to 
  257. # enable regular expression search to use a wild card in Key=
  258. # Also note that if you want to search _only_ the exact level of 
  259. # HKEY_USERS\S-*\Software\Microsoft\Windows NT\CurrentVersion\PrinterPorts 
  260. # Process Subkeys=0 should be specified.  If Process Subkeys=1 is 
  261. # specified the program will also search keys under \PrinterPorts if 
  262. # they exist.
  263.  
  264. [Action4]
  265. Key=HKEY_USERS\S-*\Software\Microsoft\Windows NT\CurrentVersion\PrinterPorts
  266. Search String=Canon 100
  267. Replace String= Canon S880
  268. Case Sensitive=1
  269. Whole Word=0
  270. Regular Expression=0
  271. Values=1
  272. Keys=0
  273. Data=0
  274. String=1
  275. Expanded String=0
  276. Multi String=0
  277. Binary=0
  278. Output/Undo File=D:\Scripts\RTOutput4.txt
  279. Replace=1
  280. Prompts=0
  281. Process Subkeys=0
  282.